package com.java2110.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author admin
 * @since 2025-05-2025/5/23 10:52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Subjects implements Serializable {
    private Integer id;
    private String  title;
    private Integer totalVotes;
    private Integer viewTimes;
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createDate;

}
